/**
 * Created by bman on 17-4-6.
 */
var sequelizex = require('sequelize-short');
var shortDataTypes = sequelizex.DataTypes;

module.exports = function (sequelize, DataTypes) {

    var File = sequelize.define('File', {
        title : shortDataTypes.String(),
        location : shortDataTypes.String()
    },{
        associate: function (models) {
            models.File.belongsTo(models.Course);
        }
    });

    return File;
};